#ifndef _OPENGLAPPFRAMEWORK_TEXTURE_H_
#define _OPENGLAPPFRAMEWORK_TEXTURE_H_

#include <string>
#include <vector>
#include <utility>

// using TextureIdName = std::vector<std::pair<uint32_t, std::string>>;
// using TextureIdNameItem = std::pair<uint32_t, std::string>;

class Texture {
public:
    Texture();
    ~Texture();

    // 只支持8比特RGB/RGBA的图片
    int loadAndBind(const std::string& file_name);
    unsigned int getTextureId() const;
    bool isLoaded() const;

    //unsigned int texture_unit_id;

private:
    bool m_is_loaded;
    unsigned int m_texture_id;
};

#endif//_OPENGLAPPFRAMEWORK_TEXTURE_H_
